STEP 9: We need information about the ball's speed! During the game, the ball will hit the paddle and bricks multiple times! Each time, we need the ball's speed so that we will be able to change the x OR y speed depending on if the ball has hit the paddle or a brick.
- From add Get x Speed in the collision event, just under hit_sprite.get_color()
- Change the new my_var (in front of the .get_x_speed() command!) to ball_x_speed.
To navigate the page using the TAB key, first press ESC to exit the code editor.